#pragma once
#ifndef RegisterChecker_h__
#define RegisterChecker_h__

#include "Base/AbstractRemoteProcedure.h"
#include <QObject>

namespace TC
{
    namespace Request
    {
        class TCCORE_EXPORT RegisterValidator : public AbstractRemoteProcedure
        {
            Q_OBJECT
        public:
            Q_INVOKABLE void usernameExist(const QString &username);
            Q_INVOKABLE void emailExist(const QString &email);
            Q_INVOKABLE void phoneExist(const QString &phone);
        protected:
            void onDataReady(QDataStream &stream) override;
        };

    }
}
#endif // RegisterChecker_h__
